﻿using AduSkin.Controls.Metro;
using AduSkin.Controls.Tools.Extension;
using Helper.Utility;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Windows.Threading;

namespace Helper
{
    /// <summary>
    /// MainWindow.xaml 的交互逻辑
    /// </summary>
    public partial class MainWindow : MetroWindow
    {
        public MainWindow()
        {

            InitializeComponent();
            SystemMenuManager.RemoveWindowSystemMenu(this);
            this.Closed += MainWindow_Closed;
        }

        private void MainWindow_Closed(object sender, EventArgs e)
        {
            Debug.WriteLine(this.Title + "is Closed  当前窗口" + Application.Current.MainWindow);
            foreach(Window item in Application.Current.Windows)
            {
                Debug.WriteLine("当前剩余窗口" + item.Title);
            }
           
        }

    

        protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
        {
            this.DragMove();
            base.OnMouseLeftButtonDown(e);

            // Begin dragging the window

        }
    }
}
